package com.juc.unsafe;

import com.juc.threadpool.FixedThreadPoolTest;
import com.juc.threadpool.StopThreadPoolTest;
import java.lang.reflect.InvocationTargetException;

/**
 * @author mobai
 * @since 2021/3/9 16:47
 */
public class NewInstanceTest {

    public static void main(String[] args) throws IllegalAccessException, InstantiationException, InvocationTargetException {
        Object o = FixedThreadPoolTest.Calc.THE_UNSAFE.allocateInstance(StopThreadPoolTest.class);
        System.out.println(o);

    }
}
